package practice08;

public class Klass {
    private int Number;
    private Student Leader;

    public Klass(int Number) {
        this.Number = Number;

    }
    public int getNumber(){
        return Number;
    }

    public String getDisplayName() {
        return "Class "+ Number +"";
    }
    public Student setLeader(Student Leader){
        this.Leader =Leader;
        return Leader;
    }


    public Student getLeader() {
        return Leader;
    }

    public void assignLeader(Student student) {
        this.Leader = setLeader(student);
    }
}
